package com.freecloud.framework.service;

import com.freecloud.framework.repository.TreeDao;

import java.util.List;

/**
 * @Author: maomao
 * @Date: 2019-06-19 15:51
 */
public abstract class AbstractTreeService <T,ID,R extends TreeDao<T,ID>> extends AbstractBaseService<T,ID,R> {
    /**
     * 找到所有子节点
     *
     * @param parentid
     * @return
     */
    List<T> findByParentId(ID parentid) {
        return baseDao.findByParentId(parentid);
    }
}
